const mongoose = require("mongoose");

const addressSchema = mongoose.Schema({
    username: {
        type: String,
        require: true,
    },
    realName: {
        type: String,
        require: true,
    },
    phoneNum: {
        type: Number,
        require: true,
    },
    userAdd: {
        type: String,
        require: true,
    },
    isDef: {
        type: Boolean,
        require: true,
    },
});

module.exports = mongoose.model("address", addressSchema);